package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.Activation;
import cn.wolfcode.trip.base.mapper.ActivationMapper;
import cn.wolfcode.trip.base.service.IActivationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ActivationServiceImpl class
 *
 * @author lishuanwang
 * @date 2019/6/4
 */
@Service
public class ActivationServiceImpl implements IActivationService {
    @Autowired
    private ActivationMapper activationMapper;

    @Override
    public Boolean checkActivation(Activation activation) {
        int i = activationMapper.checkActivation(activation);
        if (i==1){
            return true;
        }else{
            return false;
        }
    }
}
